//
//  APIS.h
//  嗨文
//
//  Created by 响当当 on 2019/3/20.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#ifndef APIS_h
#define APIS_h

#if DEBUG
//#define WEB_HOST @"http://hyjz.tpddns.cn:8089/api/"
#define WEB_HOST @"http://www.haishuwu.com/api/"
#else
//#define WEB_HOST @"http://hyjz.tpddns.cn:8089/api/"
#define WEB_HOST @"http://www.haishuwu.com/api/"
#endif

#define FULL_WEB_URL(url) [NSString stringWithFormat:@"%@%@", WEB_HOST, url]
#define OLDFULL_WEB_URL(url) [NSString stringWithFormat:@"%@%@", WEB_IMAGE_YONGKA, url]
#define WEBCOMME_HOST @"http://www.haishuwu.com"
#define WEB_TEST @"http://192.168.31.213:8085"
#define WEB_IMAGE_YONGKA @"http://yongka.cc/api/"

/**
 *  登陆接口 1.phoneNum 2.password
 */
#define KAPI_LOGIN @"user/readerlogin"
/**
 *  注册接口 1.nickName 2.phoneNumber 3.password 4.code
 */
#define KAPI_REGIST @"user/reader-register"

/**
 *  验证token是否失效
 */
#define KAPI_CHECKTOKEN @"user/verification-token"
/**
 *   获取验证码 phoneNumber
 */
#define kAPI_getCode @"user/mobileverification"

/**
 *  注册接口 1.token
 */
#define KAPI_MYINFO @"user/reader-center"

/**
 *  我的钱包 1.token
 */
#define KAPI_MYWALLET @"user/mywallet"

/**
 *  排行榜 1.token 2.pagesize
 */
#define KAPI_LEVELLIST @"user/list/rank/wallet"

/**
 *  我的钱包之金币记录 1.token 2.sourceType
 */
#define KAPI_MYWALLETOFCOINRECORD @"gold/coin/record/list/type/page"
/**
 *  vip充值 1.token
 */
#define KAPI_VIPRECHARGE @"recharge/info/readvip"

/**
 *  书券充值 1.token
 */
#define KAPI_BOOKRECHARGE @"recharge/info/bookcoin"

/**
 *  我的评论 1.token 2.pageNum 3.pageSize
 */
#define KAPI_COMMENT @"hai/moment/my-comments"

/**
 *  提交意见 1.access_token 2.advice 3.wxAccount 4.phoneNum
 */
#define KAPI_ADVICE @"advice/add"

/**
 *  兑换书币 1.access_token 2.bookCion
 */
#define KAPI_CHANGEBOOKCOIN @"exchange/bookcoin"

/**
 *  兑换现金 1.access_token 2.cash
 */
#define KAPI_CASH @"exchange/money"

/**
 *  个人信息 1.access_token
 */
#define KAPI_PERSONINFO @"user/info"

/**
 *  设置支付宝账号 1.access_token 2.aliPayName 3.aliPayAccount
 */
#define KAPI_AIPAYCOUNT @"withdraw/apply/set/alipay"

/**
 *   书券 1.access_token 2.pageNum 3.pageSize
 */
#define KAPI_LISTVAILD @"user/coupons/list/valid"

/**
 *   VIP充值记录 1.access_token 2.month 3.year
 */
#define KAPI_VIPRECHRGENOTE @"pay/bill/list/bookcoin"

/**
 *   VIP充值记录 1.access_token 2.month 3.year
 */
#define KAPI_CONUSME @"consume/record/list/page"

/**
 *   书券 1.access_token
 */
#define KAPI_TOKEN @"user/mybookcoin"

/**
 *   嗨书架 1.access_token
 */
#define KAPI_BOOKSHELF @"readlike/like/list/page"

/**
 *   金币兑换记录 1.access_token
 */
#define KAPI_GOLDEXCHANGE @"exchange/list/page"

/**
 *   余额提现记录 1.access_token
 */
#define KAPI_MONEYEXCHANGE @"withdraw/apply/list/page"

/**
 *   余额提现 1.access_token
 */
#define KAPI_CASHWIDTHDRAW @"user/withdraw"

/**
 *   余额提现segment数量 1.access_token
 */
#define KAPI_CASHWIDTHDRAWNUM @"user/haifriend-num"

/**
 *   余额提现列表 1.access_token 2.haiLevel 3.pageNum 4.pageSize
 */
#define KAPI_CASHWIDTHDRAWLIST @"user/haifriend"

/**
 *   阅读记录 1.access_token 2.pageNum 3.pageSize
 */
#define KAPI_BOOKLIKEINFO @"readlike/read/list/page"

/**
 *   阅读记录 1.access_token 2.bookId
 */
#define KAPI_BOOKREADLIKE @"readlike/like/add"

/**
 *   男女生阅读口味 1.access_token 2.channel
 */
#define KAPI_BOYHABITLIST @"series/list"

/**
 *   男女生阅读口味保存 1.readTaste 2.tasteSeries[] 3.access_token
 */
#define KAPI_SAVEBOYHABIT @"book/readtaste"

/**
 *   男女生阅读口味信息 1.access_token
 */
#define KAPI_USERTASTEINFO @"user/taste-series"

/**
 *   系统通知 1.access_token 2.pageNum 3.pageSize
 */
#define KAPI_INFORMLIST @"inform/list/page"

/**
 *   个人中心 1.access_token 2.userId 3.gender 4.automaticDeduction
 */
#define KAPI_UPDATE @"user/update"

/**
 *   个人中心 1.access_token
 */
#define KAPI_LOGOUT @"user/logout"

/**
 *   获取书本detail 1.access_token 2.chapterCoin 3.chapterId
 */
#define KAPI_BOOKDETAIL @"chapter/detail"

/**
 *   买书 1.access_token 2.chapterCoin 3.chapterId
 */
#define KAPI_BOOKDETAILPAY @"chapter/pay"

/**
 *   获取目录 1.access_token 2.bookId 3.pageNum 4.pageSize
 */
#define KAPI_BOOKINDEXINFO @"chapter/list/page"

/**
 *   余额提现详情 1.access_token
 */
#define KAPI_ACCOUNTWIDTHDRAWINFO @"user/withdraw"

/**
 *   兑换书本 autoCutPay
 */
#define kAPI_PAYBOOK @"chapter/update/autopay"

/**
 *   支付
 */
#define kAPI_AIPAYVIP @"alipay/reader_vip"

/**
 *  修改头像
 */
#define KAPI_MODIFYHEADIMG @"common/upload/headimg"

/**
 *   埋点 1.access_token
 */
#define KAPI_BURYPOINT @"burying/point/browse-record"

/**
 *   验证支付结果
 */
#define KAPI_PAYRESULTCHECKING @"applepay/book_coin"

/**
 *   隐藏支付
 */
#define KAPI_PAYHIDEN @"applepay/o"

/**
 *   小说列表
 */
#define KAPI_BOOKLIST @"series/list"

/**
 *   上传图片
 */
#define kAPI_UPLOADIMAGELIST @"file/upload"

/**
 *   小说评论
 */
#define kAPI_COMMENTADD @"hai/moment/add"



////////////////////////////////////////////
/**
 *   获取验证码 phoneNumber
 */
#define kAPI_GETCODE @"login/send-login-sms-code"


/**
 *  获取接客信息
 */
#define KAPI_FETCUSTOMERINFO @"/serve/shop-customers"

/**
 *  取消接客
 */
#define KAPI_CANCELSERVERCUSTOMER @"/serve/serve-customer"

/**
 *  顾客信息
 */
#define KAPI_CUSTOMERINFO @"/serve/customer-info"

/**
 *  顾客攻略信息
 */
#define KAPI_CUSTOMERATTACKINFO @"/serve/customer-strategy"

/**
 *  用户信息
 */
#define KAPI_USERINFO @"/sys/user/user-info"

/**
 *  活动信息
 */
#define KAPI_ACTIVITY @"/activity/list"

/**
 *  开关 关闭设备
 */
#define KAPI_SWITCHON @"/sys/user/change-state"

/**
 *  人脸认证
 */
#define KAPI_FACE @"/sys/user/facial-auth"

/**
 *  折线图
 */
#define KAPI_RECORDLINECHART @"/record/record-line-chart"

/**
 *  顾客记录表
 */
#define KAPI_RECORDLIST @"/record/record-list"

/**
 *  店内统计
 */
#define KAPI_STATISTICS @"/record/record-statistics"

#endif /* APIS_h */

